package customHandler;


import com.springboot.frame.excel.handler.AbstractBaseCellHandler;
import org.apache.poi.ss.usermodel.Cell;

public class MarriedCellHandler extends AbstractBaseCellHandler<Boolean> {

  @Override
  public void doWrite(Cell cell, Boolean data) {
    if (data == null) {
      cell.setCellValue("未填写");
    } else {
      cell.setCellValue(data ? "已婚" : "未婚");
    }
  }

  @Override
  public Boolean read(Cell cell, Object object) {
    return false;
  }
}
